package main

import "fmt"

type Sleep interface {
	sleep()
}

type Mammal interface {
	born()
}

type Pig struct {
	name string
	age int
}

func (pig Pig)sleep() {
	fmt.Printf("我是%s，我几年%d岁了,", pig.name, pig.age)
	fmt.Println("我正在睡觉~~~")
}

func (pig Pig)born() {
	fmt.Printf("我是%s，我几年%d岁了,", pig.name, pig.age)
	fmt.Println("我正在喂奶~~~")
}

// func main() {
// 	pig := Pig{name: "Jude", age: 2}
// 	pig.sleep()
// 	pig.born()
// }